// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.config.productionTip = false
Vue.use(ElementUI)
/* eslint-disable no-new */


//elementUI
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

// axios
import axios from 'axios'
Vue.prototype.$axios = axios

//vue-cookie
import VueCookie from 'vue-cookie'

Vue.use(VueCookie)   // 挂在在全局
//echars
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts

//pub-sub
import pubsub from 'pubsub-js';
Vue.prototype.$pubSub = pubsub;

//animate.css
import 'animate.css';


new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>',
  beforeCreate() {
    Vue.prototype.$bus = this;
  }
})
